#pragma once

//#define DEF_RENDERLESS

#ifndef DEF_RENDERLESS
#include "VMR9Graph.h"
#else
#include "VMR9RGraph.h"
#endif

#include "DlgNavi.h"

// CAviPlay dialog

class CAviPlay : public CDialog
{
	DECLARE_DYNAMIC(CAviPlay)

public:
#ifndef DEF_RENDERLESS
	CAviPlay(CVMR9Graph* pGraph, CWnd* pParent);   // standard constructor
#else 
	CAviPlay(CVMR9RGraph* pGraph, CWnd* pParent);   // standard constructor
#endif

	virtual ~CAviPlay();

// Dialog Data
	enum { IDD = IDD_DLG_AVIPLAY };
public:

#ifndef DEF_RENDERLESS
	CVMR9Graph*		m_pVMR9Graph;
#else
	CVMR9RGraph*		m_pVMR9RGraph;
#endif

	CDlgNavi*		m_pDlgNavi;
	HANDLE			m_hHandleWait;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
protected:
	virtual void OnCancel();
	virtual void OnOK();
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnDestroy();
	afx_msg LRESULT  OnDropFiles(WPARAM wParam,LPARAM lParam);

};
